<?php
namespace app\api\validate;

use think\Validate;

class GoodsGroupValidate extends Validate{
    protected $rule =   [
        'id'                       => 'require|number',
        'curr|页数'                => 'require|number',
        'limit|条数'               => 'require|number',
        'user_id|用户ID'           => 'require|number',
        'group_id|商品ID'          => 'require|number',
        'admin_id|店铺ID'          => 'require|number',
    ];
    
    protected $scene = [
        'show'        => ['group_id'],
        'list'        => ['admin_id', 'curr', 'limit'],
    ];
}